package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * OrganicFertilizations generated by hbm2java
 */
@Entity
@Table(name="organic_fertilizations"
    ,catalog="madr_bd10"
)
public class OrganicFertilizations  implements java.io.Serializable {


     private Integer idOrgFer;
     private OrganicFertilizers organicFertilizers;
     private Fertilizations fertilizations;
     private String otherProductOrgFer;

    public OrganicFertilizations() {
    }

	
    public OrganicFertilizations(Fertilizations fertilizations) {
        this.fertilizations = fertilizations;
    }
    public OrganicFertilizations(OrganicFertilizers organicFertilizers, Fertilizations fertilizations, String otherProductOrgFer) {
       this.organicFertilizers = organicFertilizers;
       this.fertilizations = fertilizations;
       this.otherProductOrgFer = otherProductOrgFer;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_org_fer", unique=true, nullable=false)
    public Integer getIdOrgFer() {
        return this.idOrgFer;
    }
    
    public void setIdOrgFer(Integer idOrgFer) {
        this.idOrgFer = idOrgFer;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id_product_org_fer")
    public OrganicFertilizers getOrganicFertilizers() {
        return this.organicFertilizers;
    }
    
    public void setOrganicFertilizers(OrganicFertilizers organicFertilizers) {
        this.organicFertilizers = organicFertilizers;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id_fertilization_org_fer", nullable=false)
    public Fertilizations getFertilizations() {
        return this.fertilizations;
    }
    
    public void setFertilizations(Fertilizations fertilizations) {
        this.fertilizations = fertilizations;
    }
    
    @Column(name="other_product_org_fer", length=65535)
    public String getOtherProductOrgFer() {
        return this.otherProductOrgFer;
    }
    
    public void setOtherProductOrgFer(String otherProductOrgFer) {
        this.otherProductOrgFer = otherProductOrgFer;
    }




}


